package com.jkoss.wine.investment.utils;


import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Component;

import com.jkoss.common.util.Constant;
import com.jkoss.wine.system.entity.MerchantEmployees;


@Component
public class MyUtils {
	/*
	 * 获取当前操作人
	 */
	public static String setOperator() {
		MerchantEmployees user = (MerchantEmployees) SecurityUtils.getSubject().getSession().getAttribute(Constant.SESSION_USER_KEY);
		return user.getEmployeeName();
	}

}
